import 'package:json_annotation/json_annotation.dart';

part 'vitality.g.dart';

@JsonSerializable()
class DungeonVitality {
  final int currVitality;
  final int totalVitality;

  DungeonVitality({this.currVitality, this.totalVitality});

  factory DungeonVitality.fromJson(Map<String, dynamic> json) =>
      _$DungeonVitalityFromJson(json);

  Map<String, dynamic> toJson() => _$DungeonVitalityToJson(this);
}
